package cn.itcast.bos.dao.base;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;

import cn.itcast.bos.domain.base.Courier;

//实体类，主键
public interface CourierRepository extends JpaRepository<Courier, Integer>, 
			JpaSpecificationExecutor<Courier> {

	
	//JpaSpecificationExecutor 带条件的分页查询 Page<T> findAll(Specification<T> spec, Pageable pageable);

	@Query(value="update Courier set deltag = ?2 where id = ?1")
	@Modifying	//标志是修改操作
	void updateDelTag(Integer id, String deltag);
}
